﻿using System;
using AzureDiagMon.Common.Mvvm.Interfaces;

namespace AzureDiagMon.Common.Mvvm
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class ViewModelAttribute : ExportAttribute, IViewModelMetadata
    {
        public ViewModelAttribute(string viewName)
            : base(typeof(IViewModel))
        {
            Name = viewName;
            ViewName = viewName;
            IsScreen = false;
            Order = 0;
        }

        #region Implementation of IViewModelMetadata

        public string ViewName { get; set; }
        public bool IsScreen { get; set; }
        public int Order { get; set; }

        #endregion
    }
}
